package com.rb.entity;

import org.nutz.dao.entity.annotation.*;
import java.io.Serializable;
import java.sql.Timestamp;

@Table("t_user")
public class User implements Serializable {
	
	/**
	*  
	*/	
	@Name	
	@Prev(els = @EL("uuid(32)"))	
	private String id;
	
	/**
	* 用户昵称
	*/	
	@Column("nickname")	
	private String nickname;
	
	/**
	* 用户电话
	*/	
	@Column("phone")	
	private String phone;
	
	/**
	* 登录密码
	*/	
	@Column("passwd")	
	private String passwd;
	
	/**
	* 状态
	*/	
	@Column("status")	
	private int status;
	
	/**
	* 创建时间
	*/	
	@Column("create_time")	
	private Timestamp createTime;
	
	/**
	* 修改时间
	*/	
	@Column("update_time")	
	private Timestamp updateTime;
	
	/**
	* 微信openid
	*/	
	@Column("openid")	
	private String openid;
	
	/**
	* 用户头像
	*/	
	@Column("headimgurl")	
	private String headimgurl;
	
	/**
	* 管理员
	*/	
	@Column("admin")	
	private boolean admin;
	
	/**
	* email
	*/	
	@Column("email")	
	private String email;
	
	public void setId(String id) {
		this.id = id;
	}
	 
	public String getId() {
		return this.id;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}
	 
	public String getNickname() {
		return this.nickname;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
	 
	public String getPhone() {
		return this.phone;
	}

	public void setPasswd(String passwd) {
		this.passwd = passwd;
	}
	 
	public String getPasswd() {
		return this.passwd;
	}

	public void setStatus(int status) {
		this.status = status;
	}
	 
	public int getStatus() {
		return this.status;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}
	 
	public Timestamp getCreateTime() {
		return this.createTime;
	}

	public void setUpdateTime(Timestamp updateTime) {
		this.updateTime = updateTime;
	}
	 
	public Timestamp getUpdateTime() {
		return this.updateTime;
	}

	public void setOpenid(String openid) {
		this.openid = openid;
	}
	 
	public String getOpenid() {
		return this.openid;
	}

	public void setHeadimgurl(String headimgurl) {
		this.headimgurl = headimgurl;
	}
	 
	public String getHeadimgurl() {
		return this.headimgurl;
	}

	public void setAdmin(boolean admin) {
		this.admin = admin;
	}
	 
	public boolean getAdmin() {
		return this.admin;
	}

	public void setEmail(String email) {
		this.email = email;
	}
	 
	public String getEmail() {
		return this.email;
	}


}
